package com.uls.hdh.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 投票记录对象 hdh_votes
 * 
 * @author hdh
 * @date 2024-11-11
 */
public class HdhVotes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long voteId;

    /** 投票事项 */
    @Excel(name = "投票事项")
    private Long pollId;
    /** 投票标题 */
    @Excel(name = "投票标题")
    private String title;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    /** 用户 */
    @Excel(name = "用户")
    private Long usersId;
    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    /** 选项 */
    @Excel(name = "选项")
    private Long optionId;
    /** 选项内容 */
    @Excel(name = "选项内容")
    private String optionText;

    public String getOptionText() {
        return optionText;
    }

    public void setOptionText(String optionText) {
        this.optionText = optionText;
    }

    /** 投票时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投票时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date voteTime;

    /** 当前用户的权重 */
    @Excel(name = "当前用户的权重")
    private Integer weightFactor;

    /** 标记该票是否为匿名 */
    @Excel(name = "标记该票是否为匿名")
    private Integer isAnonymous;

    public void setVoteId(Long voteId) 
    {
        this.voteId = voteId;
    }

    public Long getVoteId() 
    {
        return voteId;
    }
    public void setPollId(Long pollId) 
    {
        this.pollId = pollId;
    }

    public Long getPollId() 
    {
        return pollId;
    }
    public void setUsersId(Long usersId) 
    {
        this.usersId = usersId;
    }

    public Long getUsersId() 
    {
        return usersId;
    }
    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setVoteTime(Date voteTime) 
    {
        this.voteTime = voteTime;
    }

    public Date getVoteTime() 
    {
        return voteTime;
    }
    public void setWeightFactor(Integer weightFactor) 
    {
        this.weightFactor = weightFactor;
    }

    public Integer getWeightFactor() 
    {
        return weightFactor;
    }
    public void setIsAnonymous(Integer isAnonymous) 
    {
        this.isAnonymous = isAnonymous;
    }

    public Integer getIsAnonymous() 
    {
        return isAnonymous;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("voteId", getVoteId())
            .append("pollId", getPollId())
            .append("usersId", getUsersId())
            .append("optionId", getOptionId())
            .append("voteTime", getVoteTime())
            .append("weightFactor", getWeightFactor())
            .append("isAnonymous", getIsAnonymous())
            .toString();
    }
}
